home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / GUSI-mods / GUSI.r < prev    next >
Encoding:
Text File  |  1996-10-17  |  4.5 KB  |  169 lines  |  [TEXT/CWIE]

  1. /*********************************************************************
  2. Project    :    GUSI                -    Grand Unified Socket Interface
  3. File        :    GUSI.r            -    Include this
  4. Author    :    Matthias Neeracher
  5. Language    :    MPW Rez 3.0
  6.  
  7. $Log: GUSI.r,v $
  8. Revision 1.3  1994/12/30  19:33:34  neeri
  9. Enlargened message box for select folder dialog.
  10.  
  11. Revision 1.2  1994/08/10  00:34:18  neeri
  12. Sanitized for universal headers.
  13.  
  14. Revision 1.1  1994/02/25  02:12:04  neeri
  15. Initial revision
  16.  
  17. Revision 0.5  1993/05/21  00:00:00  neeri
  18. suffixes
  19.  
  20. Revision 0.4  1993/01/31  00:00:00  neeri
  21. Daemon
  22.  
  23. Revision 0.3  1993/01/03  00:00:00  neeri
  24. autoSpin
  25.  
  26. Revision 0.2  1992/09/24  00:00:00  neeri
  27. Don't include CKID, create GUSIRsrc_P.h
  28.  
  29. Revision 0.1  1992/07/13  00:00:00  neeri
  30. .rsrc
  31.  
  32. *********************************************************************/
  33.  
  34. #include "Types.r"
  35. #include "GUSIRsrc_P.h"
  36.  
  37. include "GUSI.rsrc" not 'ckid';
  38.  
  39. /* Define a resource ('GU∑I', GUSIRsrcID) to override GUSI defaults         
  40.     To avoid having to change the Rez file every time I introduce another
  41.     feature, the preprocessor variable GUSI_PREF_VERSION by default keeps
  42.     everything compatible with version 1.0.2. Just define GUSI_PREF_VERSION
  43.     to be the version you want to use.
  44. */
  45.  
  46. #ifndef GUSI_PREF_VERSION
  47. #define GUSI_PREF_VERSION '0102'
  48. #endif
  49.  
  50. type 'GU∑I' {
  51.     literal longint    text     =    'TEXT';    /* Type for creat'ed files                 */
  52.     literal longint    mpw    =    'MPS ';    /* Creator for creat'ed files              */
  53.     byte         noAutoSpin, autoSpin;        /* Automatically spin cursor ?            */
  54. #if GUSI_PREF_VERSION > '0102'
  55.     boolean     useChdir, dontUseChdir;        /* Use chdir() ?                            */
  56.     boolean    approxStat, accurateStat;    /* statbuf.st_nlink = # of subdirectories ? */
  57. #if GUSI_PREF_VERSION >= '0181'
  58.     boolean    noDelayConsole, DelayConsole;    /* Delay opening console window until needed? */
  59.     fill        bit[1];
  60. #else
  61.     boolean    noTCPDaemon, isTCPDaemon;    /* Inetd client ?                            */
  62.     boolean    noUDPDaemon, isUDPDaemon;
  63. #endif
  64. #if GUSI_PREF_VERSION >= '0150'
  65.     boolean    noConsole, hasConsole;        /* Are we providing our own dev:console ? */
  66. #if GUSI_PREF_VERSION >= '0180'
  67.     boolean    autoInitGraf, noAutoInitGraf;    /* Automatically do InitGraf ? */
  68.     boolean    exclusiveOpen, sharedOpen;    /* Shared open() ?                             */
  69.     boolean    noSigPipe, sigPipe;            /* raise SIGPIPE on write to closed PIPE */
  70. #else
  71.     fill         bit[3];
  72. #endif
  73. #else
  74.     fill         bit[4];
  75. #endif
  76.     literal longint = GUSI_PREF_VERSION;
  77. #if GUSI_PREF_VERSION >= '0120'
  78.     integer = $$Countof(SuffixArray);
  79.     wide array SuffixArray {
  80.             literal longint;                    /* Suffix of file */
  81.             literal longint;                    /* Type for file */
  82.             literal longint;                    /* Creator for file */
  83.     };
  84. #endif
  85. #endif
  86. };
  87.  
  88. type 'TMPL' {
  89.     wide array {
  90.         pstring;
  91.         literal longint;
  92.     };
  93. };
  94.  
  95. resource 'TMPL' (GUSIRsrcID, "GU∑I") {
  96.     {
  97.         "Type of created files",        'TNAM',
  98.         "Creator of created files",    'TNAM',
  99.         "Automatically spin cursor",     'DBYT',
  100. #if GUSI_PREF_VERSION > '0102'
  101.         "Not using chdir()",                'BBIT',
  102.         "Accurate stat()",                'BBIT',
  103. #if GUSI_PREF_VERSION >= '0181'
  104.         "Delay Console",                    'BBIT',
  105.         "Reserved",                            'BBIT',
  106. #else
  107.         "TCP daemon",                        'BBIT',
  108.         "UDP daemon",                        'BBIT',
  109. #endif
  110. #if GUSI_PREF_VERSION >= '0150'
  111.         "Own Console",                        'BBIT',
  112. #else
  113.         "Reserved",                            'BBIT',
  114. #endif
  115. #if GUSI_PREF_VERSION >= '0180'
  116.         "Don't initialize QuickDraw",    'BBIT',
  117.         "Open files shared",                'BBIT',
  118.         "Raise SIGPIPE",                    'BBIT',
  119. #else
  120.         "Reserved",                            'BBIT',
  121.         "Reserved",                            'BBIT',
  122.         "Reserved",                            'BBIT',
  123. #endif
  124.         "Version (don't change)",        'TNAM',        
  125. #if GUSI_PREF_VERSION >= '0120'
  126.         "NumSuffices",                        'OCNT',
  127.         "*****",                                'LSTC',
  128.         "Suffix",                            'TNAM',
  129.         "Type for suffix",                'TNAM',
  130.         "Creator for suffix",            'TNAM',
  131.         "*****",                                'LSTE',
  132. #endif
  133. #endif        
  134.     }
  135. };
  136.  
  137. resource 'DLOG' (GUSIRsrcID, "Get Directory") {
  138.     {0, 0, 217, 348}, 
  139.     dBoxProc, 
  140.     invisible, 
  141.     noGoAway, 
  142.     0x0, 
  143.     10240, 
  144.     "",
  145. #if SystemSevenOrLater
  146.     alertPositionMainScreen
  147. #endif
  148. };
  149.  
  150. resource 'DITL' (GUSIRsrcID, "Get Directory") {
  151.     {
  152.         { 142, 256,  160, 336},    Button        {enabled,"Open"},
  153.         {1152,  59, 1232,  77},    Button        {enabled,"Hidden"},
  154.         { 193, 256,  211, 336},    Button        {enabled,"Cancel"},
  155.         {  43, 232,   63, 347},    UserItem        {disabled},
  156.         {  72, 256,   90, 336},    Button        {enabled,"Eject"},
  157.         {  97, 256,  115, 336},    Button        {enabled,"Drive"},
  158.         {  43,  12,  189, 230},    UserItem        {enabled},
  159.         {  43, 229,  189, 246},    UserItem        {enabled},
  160.         { 128, 252,  129, 340},    UserItem        {disabled},
  161.         {1044,  20, 1145, 116},    StaticText    {disabled,""},
  162.         { 167, 256,  185, 336},    Button        {enabled,"Directory"},
  163.         {   0,  30,   18, 215},    Button        {enabled,"Select Current Directory:"},
  164.         { 200,  20, 1145, 222},    StaticText    {disabled,"Select a Folder"}
  165.     }
  166. };
  167.  
  168.  
  169.